<!DOCTYPE html>
<html>
<head>
	<title>新增/修改节点</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/min.css" />
	<link rel="stylesheet" href="__PUBLIC__/Admin/content/style.css" />

	<!-- jQuery AND jQueryUI -->
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jquery/1.6/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/js/min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/content/main.js"></script>
</head>
<body>
<!-- CONTENT -->
<div id="content" class="white">

  <div class="bloc">
    <div class="title">
		<?php
			if(I('get.id')){
				echo '编辑';
			}else{
				echo '新增';
			}
		?>节点
	</div>
    <form method="post" action="editOperation">
		<?php
			$id = I('get.id');
			$workflowid = I('get.workflowid');
			if($id){
				echo "<input type='hidden' name='id' value='".$id."'/>";
			}
		?>
    <div class="content">
		<div class="input">
			<label class="label">节点名称:</label>
			<input name="name" value="{$object['name']}"/>
		</div>
		<div class="input">
			<label class="label">所属工作流:</label>
			<select disabled=disabled>
				<option value="">无</option>
				<volist name='workflowlist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" value="$workflowid">selected='selected'</eq> >
						{$vo.name}
					</option>
				</volist>
			</select>
			<input name="workflowid" type="hidden" value="{$workflowid}"/> 
		</div>
		<div class="input">
			<label class="label">节点类型:</label>
			<select name='type'>
				<?php
					echo '<option value=0 '; if($object[type]==0){ echo 'selected=selected';	} echo '>创建</option>';
						echo '<option value=1 '; if($object[type]==1){ echo 'selected=selected';	} echo '>提交</option>';
						echo '<option value=2 '; if($object[type]==2){ echo 'selected=selected';	} echo '>归档</option>';
					?>
			</select>
		</div>
		<div class="input">
			<label class="label">操作者类型:</label>
			<select name='handlertype' id='h'>
				<?php
					echo '<option value=0 '; if($object[handlertype]==0){ echo 'selected=selected';	} echo '>创建者</option>';
						echo '<option value=1 '; if($object[handlertype]==1){ echo 'selected=selected';	} echo '>创建者上级</option>';
						echo '<option value=2 '; if($object[handlertype]==2){ echo 'selected=selected';	} echo '>人力资源</option>';
						echo '<option value=3 '; if($object[handlertype]==3){ echo 'selected=selected';	} echo '>部门</option>';
						echo '<option value=4 '; if($object[handlertype]==4){ echo 'selected=selected';	} echo '>所有人</option>';
					?>
			</select>
		</div>
		<div class="input">
			<label class="label">人力资源对象:</label>
			<select name='handlerobject1' id='hh1'>
				<volist name='userlist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" value="$object['handlerobject1']">selected='selected'</eq> >
						{$vo.nickname}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">部门对象:</label>
			<select name='handlerobject2' id='hh2'>
				<volist name='deplist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" value="$object['handlerobject2']">selected='selected'</eq> >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="input">
			<label class="label">下一个节点:</label>
			<select name='nextnodeid'>
				<option value="">无</option>
				<volist name='nodelist' id='vo'>
					<option value="{$vo.id}" <eq name="vo.id" value="$object['nextnodeid']">selected='selected'</eq> >
						{$vo.name}
					</option>
				</volist>
			</select>
		</div>
		<div class="submit">
        <input type="submit" value="确定保存" class="black"/>
      </div>
    </div>
    </form>
  </div>
</div>
</body>
</html>